package com.job.sun.HomeWork0717;

import sun.applet.Main;

import java.util.Date;

/**
 * @author 张春阳
 * @version 1.0
 * @since 2022-07-18 11:52:48
 */
public class UseDate {
    public static void main(String[] args) {
        Date now =new Date();
        System.out.println(now);
        //自基准时间之后的1个月后的时间
        Date date =new Date(1000L*60*60*24*31);
        System.out.println(date);

        Date dd =new Date(Integer.MAX_VALUE);
        System.out.println(dd);

        long time = now.getTime();
        System.out.println(time/1000);
        //不利于国际化
    }
}